home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Nebula 2
/
Nebula Two.iso
/
NextAnswers
/
1722_Using_autorelease_pools_without_EOF.rtfd
/
PoolApplication.h
next >
Wrap
Text File
|
1995-04-28
|
759b
|
28 lines
/*
* This Application subclass provides support for NSAutoreleasePools.
* If you have an application that uses Foundation but not EOF you
* need to make this class your Application class, otherwise your
* application will have a lot of serious memory leaks.
*
* No guarantee is made for the fitness of this code for any particular
* use. No warranty expressed or implied. Use at your own risk!
*
* Randy Tidd
* NeXT Premium Developer Support
*/
#import <appkit/appkit.h>
#import <foundation/NSAutoreleasePool.h>
@interface PoolApplication : Application
{
NSAutoreleasePool *autoreleasePool;
int disableCount;
}
+ new;
- sendEvent:(NXEvent *)event;
- (int)runModalSession:(NXModalSession *)session;
- (int)runModalFor:theWindow;
@end